package 程序.数组;

public class 数组的排序 {
    public static void main(String[] args) {
        int[] array = {99,66,55,88,77,44,22,33,11,465,564,321,789,852,963,951,345,674,135,897};
        for(int i=0 ;i< array.length;i++){
            for(int j=0 ;j< array.length;j++){
                if(array[i]>array[j]){
                    int temp = array[i];
                    array[i] = array[j];
                    array[j] = temp;
                }
            }
        }
        for(int i=0 ;i< array.length;i++){
            System.out.print(array[i]+" ");
        }
    }
}
